// 商保待遇管理
export const CommercialWagesThead = [
  {
    type: 'selection',
    align: 'center',
    width: 60
  },
  {
    title: '参保险种',
    key: 'insuredTypeName',
    minWidth: 120
  },
  {
    title: '待遇名称',
    key: 'treatmentName',
    minWidth: 120
  },
  {
    title: '环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkExplain',
    minWidth: 240
  },
  {
    title: '适用范围',
    key: 'areaName',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'personInCharge',
    minWidth: 120
  },
  {
    title: '办理天数',
    key: 'handlingDays',
    minWidth: 120
  },
  {
    title: '排序',
    key: 'linkSort',
    minWidth: 120
  },
  {
    title: '状态',
    key: 'linkStatus',
    minWidth: 120,
    render: (h, params) => {
      const text = params.row.linkStatus == 0 ? '启用' : '禁用'
      return h('span', text)
    }
  },
  {
    title: '操作',
    width: 360,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]

// 新增环节
export const createNodeThead = [
  {
    title: '环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkDescription',
    minWidth: 120
  },
  {
    title: '内部员工',
    key: 'ifInsideEmployee',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'principal',
    minWidth: 120
  },
  {
    title: '预计完成日期',
    key: 'expectCompletionTime',
    minWidth: 160
  },
  {
    title: '操作',
    minWidth: 300,
    align: 'center',
    key: 'action',
    fixed: 'right',
    slot: 'action'
  }
]

// 编辑环节
export const editNodeThead = [
  {
    title: '环节名称',
    key: 'linkName',
    minWidth: 120
  },
  {
    title: '环节说明',
    key: 'linkDescription',
    minWidth: 120
  },
  {
    title: '内部员工',
    key: 'ifInsideEmployee',
    minWidth: 120
  },
  {
    title: '负责人',
    key: 'principalName',
    minWidth: 120
  },
  {
    title: '预计完成日期',
    key: 'expectCompletionTime',
    minWidth: 160,
    render: (h, params) => {
      const text = params.row.expectCompletionTime ? params.row.expectCompletionTime.slice(0, 10) : ''
      return h('span', text)
    },
  },
  // {
  //   title: '完成办理时间',
  //   key: 'f6',
  //   minWidth: 120,
  //   render: (h, params) => {
  //     const text = params.row.expectCompletionTime ? params.row.expectCompletionTime.slice(0, 10) : ''
  //     return h('span', text)
  //   },
  // },
  // {
  //   title: '办理说明',
  //   key: 'g7',
  //   minWidth: 120
  // },
  // {
  //   title: '鉴定等级',
  //   key: 'h8',
  //   minWidth: 120
  // },
  // {
  //   title: '金额',
  //   key: 'i9',
  //   minWidth: 120
  // },
  // {
  //   title: '附件',
  //   key: 'j0',
  //   minWidth: 120
  // },
  {
    title: '操作',
    minWidth: 360,
    align: 'center',
    key: 'action',
    fixed: 'right',
    slot: 'action'
  }
]
